<%@ page import="java.util.jar.Attributes.Name"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="support.*,bean.*,java.util.*" %>
    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Degree-discipline</title>
<link href="main.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Choose Specialization</h1>
<%
	// Get countries from text file
	support s = new support();
	Vector specializations = (Vector)application.getAttribute("specializations");
	if(specializations == null)
	{
		String path = config.getServletContext().getRealPath("specializations.txt");
		specializations = s.getSpecializations(path);
		application.setAttribute("specializations",specializations);
	}
%>
<form name="form1" action="verification.jsp" method="post">
	<select name="spec_id">
	<%
		for(int i=0;i<specializations.size();i++)
		{
	%>
	<option value=<%= i %>><%= specializations.get(i) %></option>
	<% } %>
	</select>
	<input type="submit" value = "submit">
</form>
</body>
</html>